<h2><%=h @tag.name %> </h2>

<ul>
<% for page in @tag.pages.sort{|a, b| a.title <=> b.title} %>
  <li>
    <%= link_to  page.title, :controller => 'wiki', :action => 'index', :id => @project, :page => page.title %>
  </li>
<% end %>
</ul>